package com.bean;

import com.bean.service.FirstService;
import com.bean.service.SecondService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    private FirstService firstService;
    @Autowired
    private SecondService secondService;

    @GetMapping
    public void hello(){
        firstService.firstMethod(secondService);
    }
}
